<?php
defined('BASEPATH') or exit('No direct script access allowed');


class OrderController extends Admin_Controller {

    public function __construct() {
        try {
            parent::__construct();
            $this->load->service("SService/OrderService");
        } catch (\TPException $e) {
            exit($e->getRetJson());
        }
    }


    /**
     * 方法名 orderList
     *
     * @Name 获取方法列和角色方法列
     * @Desc 订单列表
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function orderList() {
        $res = $this->OrderService->orderList($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 orderDelete
     *
     * @Name 获取方法列和角色方法列
     * @Desc 订单删除
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function orderDelete() {
        $res = $this->OrderService->orderDelete($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 orderInfo
     *
     * @Name 获取方法列和角色方法列
     * @Desc 订单详情
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function orderInfo() {
        $res = $this->OrderService->orderInfo($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 orderPatDelete
     *
     * @Name 获取方法列和角色方法列
     * @Desc 订单花型删除
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function orderPatDelete() {
        $res = $this->OrderService->orderPatDelete($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 orderExport
     *
     * @Name 获取方法列和角色方法列
     * @Desc 订单导出
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function orderExport() {
        $res = $this->OrderService->orderExport($_POST);
        exit(retSucc($res));
    }


    /**
     * 方法名 orderExport
     *
     * @Name 获取方法列和角色方法列
     * @Desc 订单录入
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function orderAdd() {
        $res = $this->OrderService->orderAdd($_POST);
        exit(retSucc($res));
    }




    /**
     * [ orderStatus]
     * @Name        orderStatus
     * @Description 订单提交
     * @Author      DJC
     * @Date 2022-02-17 17:13:26
     * @return      [type]                   [description]
     */
    public function orderStatus() {
        $res = $this->OrderService->orderStatus($_POST);
        exit(retSucc($res));
    }

    /**
     * [ BackSubmit]
     * @Name        BackSubmit
     * @Description 订单驳回
     * @Author      DJC
     * @Date 2022-02-17 17:13:39
     * @return      [type]                   [description]
     */
    public function BackSubmit() {
        $res = $this->OrderService->BackSubmit($_POST);
        exit(retSucc($res));
    }

    /**
     * [ abolishOrder]
     * @Name        abolishOrder
     * @Description 废除订单
     * @Author      DJC
     * @Date 2022-02-17 18:14:07
     * @return      [type]                   [description]
     */
    public function abolishOrder() {
        $res = $this->OrderService->abolishOrder($_POST);
        exit(retSucc($res));
    }

     /**
     * [ editOrder]
     * @Name        editOrder
     * @Description 修改订单
     * @Author      DJC
     * @Date 2022-02-17 18:14:07
     * @return      [type]                   [description]
     */
    public function editOrder() {
        $res = $this->OrderService->editOrder($_POST);
        exit(retSucc($res));
    }


     /**
     * [ OrderIsBuy]
     * @Name        OrderIsBuy
     * @Description 判断订单录入
     * @Author      DJC
     * @Date 2022-02-17 18:14:07
     * @return      [type]                   [description]
     */
    public function OrderIsBuy() {
        $res = $this->OrderService->OrderIsBuy($_POST);
        exit(retSucc($res));
    }



    
    
}
